GtkWidget: Add a vfunc for queue_draw_region
authorAlexander Larsson <alexl@redhat.com>
Thu, 2 May 2013 09:08:10 +0000 (11:08 +0200)
committerAlexander Larsson <alexl@redhat.com>
Tue, 7 May 2013 14:34:05 +0000 (16:34 +0200)
commitcb2882a273a380bd022b6a7adfc064c5bf04081a
tree2dbc1d1ce295eb7a571ec024a49230a588c0a489
parente13fb1d3e089299da7d1a0b1843bf5b850cdc2df
GtkWidget: Add a vfunc for queue_draw_region

Since widgets now cache drawn state we allow them to override
queue_draw_region to detect when some region of the widget
should be redrawn. For instance, if a widget draws the
background color in a pixel cache we will need to invalidate
that when the style context changes which queues a repaint.
gtk/gtkwidget.c
gtk/gtkwidget.h